package top.heliming.rabbitmq.rabbitmqdemo.spring;

//import org.springframework.amqp.core.ExchangeTypes;
//import org.springframework.amqp.rabbit.annotation.Exchange;
//import org.springframework.amqp.rabbit.annotation.Queue;
//import org.springframework.amqp.rabbit.annotation.QueueBinding;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;

/**
 * description: //TODO
 *
 * @author: heliming
 * @date:2019/06/07 下午 12:26
 */
//@Component
public class Listener {

//  @RabbitListener(bindings = @QueueBinding(
//      value = @Queue(value = "spring.test.queue", durable = "true"),
//      exchange = @Exchange(
//          value = "spring.test.exchange",
//          ignoreDeclarationExceptions = "true",
//          type = ExchangeTypes.TOPIC
//      ),
//      key = {"#.#"}))
//  public void listen(String msg){
//    System.out.println("接收到消息：" + msg);
//  }
}
